<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>

<%
    String userName = request.getParameter("userName");
			String password = request.getParameter("password");
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>

	<head>

		<title></title>
		<script language="JavaScript" src="js/jquery-1.3.1.min.js"
			type="text/JavaScript" charset="utf-8"></script>
		<script language="JavaScript" src="js/jquery.jmodal.js"
			type="text/JavaScript" charset="utf-8"></script>
	</head>


	<body onload="loginecer()">
		<f:view>
			<h:form id="loadecerForm">
				<h:inputHidden id="userID" value="#{loginBean.userID}"></h:inputHidden>
				<h:inputHidden id="password" value="#{loginBean.password}"></h:inputHidden>
				<h:commandButton id="loginecer" style="display:none;"
					action="#{loginBean.UserLoginValidate}"></h:commandButton>
			</h:form>
		</f:view>
	</body>
</html>
<script language="JavaScript" type="text/JavaScript" charset="utf-8">
function loginecer()
{
	document.getElementById("loadecerForm:userID").value = "<%=userName%>";
	document.getElementById("loadecerForm:password").value = "<%=password%>";
	

		document.getElementById("loadecerForm:loginecer").click();
	}
</script>
